package com.fanqwz.kotlinmvvm.ui.activity.main

import com.fanqwz.kotlinmvvm.di.scope.PerFragment
import com.fanqwz.kotlinmvvm.ui.fragment.main.MainFragment
import com.fanqwz.kotlinmvvm.ui.fragment.main.MainFragmentModule
import dagger.Module
import dagger.android.ContributesAndroidInjector

/**
 * Created by fanqwz on 2017/10/31.
 */
@Module
abstract class MainActivityModule{
//    @Provides
//    @PerActivity
//    fun provideMainActivity() = activity

    @PerFragment
    @ContributesAndroidInjector(modules = [MainFragmentModule::class])
    abstract fun mainFragment(): MainFragment
}